aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
committerLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
commitbc7b9defe8b72b6ab14ade6828a98f4d6e82b1de (patch)
tree6cd17b03100aa61c1d0a224771577601a1851f59 /tests/cassettes/test_status_post[None-None].yaml
parent64ec9e20987072692227d8817d9fd99d497fea5e (diff)
downloadmastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_status_post[None-None].yaml')
-rw-r--r--tests/cassettes/test_status_post[None-None].yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_post[None-None].yaml b/tests/cassettes/test_status_post[None-None].yaml
index 3154268..12c89a9 100644
--- a/tests/cassettes/test_status_post[None-None].yaml
+++ b/tests/cassettes/test_status_post[None-None].yaml
@@ -55,4 +55,60 @@ interactions:
55 X-XSS-Protection: [1; mode=block] 55 X-XSS-Protection: [1; mode=block]
56 content-length: ['2'] 56 content-length: ['2']
57 status: {code: 200, message: OK} 57 status: {code: 200, message: OK}
58- request:
59 body: status=Toot%21
60 headers:
61 Accept: ['*/*']
62 Accept-Encoding: ['gzip, deflate']
63 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
64 Connection: [keep-alive]
65 Content-Length: ['14']
66 Content-Type: [application/x-www-form-urlencoded]
67 User-Agent: [python-requests/2.9.1]
68 method: POST
69 uri: http://localhost:3000/api/v1/statuses
70 response:
71 body: {string: '{"id":"99882235117323265","created_at":"2018-04-18T20:05:56.792Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235117323265","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235117323265","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
72 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
73 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
74 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":22},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
75 headers:
76 Cache-Control: ['max-age=0, private, must-revalidate']
77 Content-Type: [application/json; charset=utf-8]
78 ETag: [W/"5a06380e22394d32e4f3b7edfcd16e93"]
79 Transfer-Encoding: [chunked]
80 Vary: ['Accept-Encoding, Origin']
81 X-Content-Type-Options: [nosniff]
82 X-Frame-Options: [SAMEORIGIN]
83 X-Request-Id: [96b031e6-5b26-494d-b8fa-b2f6454ae23d]
84 X-Runtime: ['0.538719']
85 X-XSS-Protection: [1; mode=block]
86 content-length: ['1397']
87 status: {code: 200, message: OK}
88- request:
89 body: null
90 headers:
91 Accept: ['*/*']
92 Accept-Encoding: ['gzip, deflate']
93 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
94 Connection: [keep-alive]
95 Content-Length: ['0']
96 User-Agent: [python-requests/2.9.1]
97 method: DELETE
98 uri: http://localhost:3000/api/v1/statuses/99882235117323265
99 response:
100 body: {string: '{}'}
101 headers:
102 Cache-Control: ['max-age=0, private, must-revalidate']
103 Content-Type: [application/json; charset=utf-8]
104 ETag: [W/"cc9c70fad167aedeee117a6b8838b976"]
105 Transfer-Encoding: [chunked]
106 Vary: ['Accept-Encoding, Origin']
107 X-Content-Type-Options: [nosniff]
108 X-Frame-Options: [SAMEORIGIN]
109 X-Request-Id: [8242721c-7df0-48dc-be1f-34c06d5f5975]
110 X-Runtime: ['0.119509']
111 X-XSS-Protection: [1; mode=block]
112 content-length: ['2']
113 status: {code: 200, message: OK}
58version: 1 114version: 1
Powered by cgit v1.2.3 (git 2.41.0)